<?php

namespace App\Http\Controllers;

use App\Services\FilterService;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class FilterController extends Controller
{
    /**
     * 筛选列表
     * @param Request $request
     * @return JsonResponse
     */
    public function list(Request $request)
    {
        $filterType = $request->input('filter_type', 1);
        $data = FilterService::getInstance()->list($filterType);
        return $this->success($data);
    }
}
